package org.triumphxx.logback;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @author: wangyp
 * @Date: 2023/11/6
 * @Time: 10:00
 * @Desc: 正则表达式对象集合
 **/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "replaces")
@XmlType(propOrder = {"replace","sensitive"})
@Data
public class RegexReplacements {
    /**
     * 脱敏匹配开关
     */
    @XmlElement(name = "sensitive")
    private boolean  sensitive;
    /**
     * 规则集合
     */
    @XmlElement(name = "replace")
    private List<RegexReplacement> replace;

    public  boolean isSensitive(){
        return sensitive;
    }
    public  void setSensitive(boolean sensitive){
       this.sensitive = sensitive;
    }
}
